<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <include file="Public:head"/>
  <link rel="stylesheet" media="all" type="text/css" href="/Public/css/jquery-ui.css" />
  <link rel="stylesheet" media="all" type="text/css" href="/Public/css/jquery-ui-timepicker-addon.css" />
  <style type="text/css">
    .jubao{display:inline-block;line-height: 70px;vertical-align: middle;}
  </style>
</head>
<body>
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder">举报详情</strong></div>
    <div>
     <empty name="list">
       <span style="display: inline-block;font-size: 25px;">暂无记录</span>
       <else/>
       <volist name="list" id="l">
         <div class="panel-head">
           <div >
             <div style="float: left;">
              <span class="jubao"><img src="{$l.headimgurl}" alt="" width="70" height="70" style="border-radius: 45px;" /></span>
              <span class="jubao">{$l.nickname}：</span> 
             </div>
             <div style="float: left; width: 60%;">
               <span class="jubao">{$l.content}</span>
             </div>
             <div style="float: right; padding-right: 10%;line-height: 70px;">
               <span>{$l.time}</span>
             </div>
             <div style="clear: left;"></div>
           </div>

         </div>
       </volist>
     </empty>
      </div>
    <div class="page">{$show}</div>
    </div>
  </div>
</body>
<script type="text/javascript" src="/Public/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/Public/js/jquery-ui-timepicker-addon.min.js"></script>
<script type="text/javascript" src="/Public/js/jquery-ui-timepicker-zh-CN.js"></script>
</html>
<script type="text/javascript">

   $(function () {
       $('.del_btn').click(function(){
           var message_id =$(this).attr('data-id');
           swal({
               title: "您确认要删除么？",
               text: "",
               type: "info",
               showCancelButton: true,
               confirmButtonColor: "#AEDEF4",
               cancelButtonText: "取消",
               confirmButtonText: "确定",
               closeOnConfirm: false,
               closeOnCancel: true
           }, function(isConfirm){
               if (isConfirm) {
                   $.post('{:U("del_message")}',{"message_id":message_id},function(msg){
                       if(msg.status == 0){
                           sweetAlert({title:'',text: msg.info,type: "warning",timer:2000,showConfirmButton: false});
                       }
                       if(msg.status == 1){
                           sweetAlert({title:'',text: msg.info,type: "success",showConfirmButton: false});
                           setTimeout(function(){window.location.reload()},2000);
                       }
                   });
               }
           });

       });

   })

</script>